SRC_DIR=./..

APPNAME = image
FULLNAME = $(OUT_DIR)/$(APPNAME).elf
BINNAME = $(OUT_DIR)/$(APPNAME).bin

include $(SRC_DIR)/rules.mk

CXXFLAGS += -I. \
		-I$(SRC_DIR)/include \
		-I$(SRC_DIR)/libhardware \
		-I$(SRC_DIR)/libcmsis \
		-I$(SRC_DIR)/libFreeRTOS/include \
		-I$(SRC_DIR)/libFreeRTOS/portable/GCC/ARM_CM3 \
		-DUSE_STDPERIPH_DRIVER \
		$(APP_DEFS) \
		$(FREERTOS_DEFS) \
		$(HARDWARE_DEFS)
		
CFLAGS += -O1 -I. \
		-I$(SRC_DIR)/include \
		-I$(SRC_DIR)/libhardware \
		-I$(SRC_DIR)/libcmsis \
		-I$(SRC_DIR)/libFreeRTOS/include \
		-I$(SRC_DIR)/libFreeRTOS/portable/GCC/ARM_CM3 \
		-DUSE_STDPERIPH_DRIVER \
		-DDEBUG \
		-DADC_RMS=0\
		$(APP_DEFS) \
		$(FREERTOS_DEFS) \
		$(HARDWARE_DEFS)

LIBS =  -lhardware -lcmsis -lFreeRTOS -le_stdio -lm

CUSTOM_RM_FILES=$(OUT_DIR)/image.*
